package com.wyx.Service.impl;

import com.wyx.Dao.UserDao;
import com.wyx.Pojo.User;
import com.wyx.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 用户的相关操作业务层
 */
@Service
public class userServiceimpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User selectUser(User user) {

        return userDao.selectUser(user);
    }

    @Override
    public Boolean selectUserByusername(String username) {
        return userDao.selectUserByusername(username)==null?true:false;
    }

    @Override
    public Boolean saveUser(User user) {
        return userDao.saveUser(user)>0;
    }
}
